package com.alt.connector;

import java.net.URI;

import org.apache.http.client.HttpClient;
import org.apache.http.protocol.HttpContext;
import org.springframework.http.HttpMethod;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;

public class StateHttpComponentsClientHttpRequestFactory extends
		HttpComponentsClientHttpRequestFactory {

	private final HttpContext httpContext;

	public StateHttpComponentsClientHttpRequestFactory(HttpClient httpClient,
			HttpContext httpContext) {
		super(httpClient);
		this.httpContext = httpContext;
	}

	protected HttpContext createHttpContext(HttpMethod httpMethod, URI uri) {
		return this.httpContext;
	}

}
